#!/bin/bash

DESTDIR=inst

mkdir temp
svn export bin temp/$DESTDIR
svn export conf temp/$DESTDIR/conf
svn export datos temp/$DESTDIR/datos
cd temp
chmod 744 $DESTDIR/*
tar -cf instalar.tar $DESTDIR
gzip instalar.tar
mv instalar.tar.gz ../instalar.tar.gz
cd ..
rm -r temp

exit 0
